//C15.6:nested.cpp  -- using a queue that has a nested class
#include <iostream>
#include <string>
#include "queuetp.h"

int main(void)
{
    using std::cout;
    using std::cin;
    using std::string;

    QueueTP<string> cs(5);
    string temp;

    while(!cs.isfull())
    {
        cout <<"Please enter your name. Your will be "
               "served in the order of arrival.\n"
               "name: ";
        getline(cin, temp);
        cs.enqueue(temp);               
    }   
    cout << "the queue is full. Processing begins!\n";
    while(!cs.isempty())
    {
        cs.dequeue(temp);
        cout << "Now processing " << temp << "...\n";
    }
}










